import request from '@/utils/request'
// 获取车场列表
export function getCarRuleList (params) {
  return request({
    url: 'parking/rule/list',
    params
  })
}
// 创建规则
export function createCarRule (data) {
  return request({
    url: '/parking/rule',
    method: 'POST',
    data
  })
}
// 删除规则
export function delCarRule (id) {
  return request({
    url: `/parking/rule/${id}`,
    method: 'DELETE'
  })
}
